home *** CD-ROM | disk | FTP | other *** search
- diff --unified --new-file ../qmail-1.01-unmodified/qmail-inject.c ./qmail-inject.c
- --- ../qmail-1.01-unmodified/qmail-inject.c Tue Apr 15 07:05:23 1997
- +++ ./qmail-inject.c Wed Sep 10 12:32:06 1997
- @@ -21,6 +21,9 @@
- #include "headerbody.h"
- #include "auto_qmail.h"
- #include "newfield.h"
- +#define puts stdio_puts
- +#include <pwd.h>
- +#undef puts
-
- #define LINELEN 80
-
- @@ -650,6 +653,7 @@
- int i;
- int opt;
- int recipstrategy;
- + struct passwd *pwent;
-
- sig_pipeignore();
-
- @@ -677,6 +681,7 @@
- if (!mailuser) mailuser = env_get("MAILUSER");
- if (!mailuser) mailuser = env_get("USER");
- if (!mailuser) mailuser = env_get("LOGNAME");
- + if (!mailuser && (pwent = getpwuid (getuid ()))) mailuser = pwent->pw_name;
- if (!mailuser) mailuser = "anonymous";
- mailusertokentype = TOKEN822_ATOM;
- if (quote_need(mailuser,str_len(mailuser))) mailusertokentype = TOKEN822_QUOTE;
-